<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="author" content="lzy">
    <title>lzy-</title>
    <style>
        input{
            display: inline-block;
            width: 200px;
            height: 200px;
            opacity: 0;
        }
        div{
            display: inline-block;
            width: 200px;
            height: 200px;
            position: relative;
        }
        div>img{
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
        }
    </style>
</head>
<body>
    <div>
        <img src="img/add.png" alt="">
        <input type="file" value="">
    </div>
    <div>
        <img src="img/add.png" alt="">
        <input type="file" value="" >
    </div>
    <div>
        <img src="img/add.png" alt="">
        <input type="file" value="" >
    </div>
</body>
</html>
<script>
   
    var srcs =document.querySelector('img').src
    =document.querySelector('input').value;
    console.log(srcs);


</script>